#ifndef ANIMEVIEW_H
#define ANIMEVIEW_H

#include "Interfaces/defs.h"

#include <QFrame>

namespace Ui
{
    class AnimeView;
}

class AnimeView : public QFrame
{
    Q_OBJECT

public:
    explicit AnimeView(QWidget *parent = nullptr);
    ~AnimeView();

    void showAnime(Core::Anime &anime);

    void updateAnimes(QList<Core::Anime>);

public slots:
    void animeChanged(int ret);

private slots:
    void on_pushButton_clicked();

    void on_btnComment_clicked();

    void on_btnQuery_clicked();

private:
    Ui::AnimeView *ui;

    QList<Core::Anime> m_animes;
    int m_currentIndex{0};
};

#endif // ANIMEVIEW_H
